package com.github.baichuan.application.scaffold.dto.role;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;

@Schema(title = "角色授权")
@Getter
public class RoleAuthorization {
    @Schema(title = "角色Id")
    @NotNull(message = "角色Id不能未空")
    private String roleId;

    @Schema(title = "资源Id")
    @NotBlank(message = "资源Id不能为空")
    private String resourceId;
}
